.class Lcom/waiqin365/lightapp/returngoods/h;
.super Landroid/os/Handler;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsAddActy;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsAddActy;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/returngoods/h;->a:Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsAddActy;

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 6

    const/4 v4, 0x1

    const/4 v3, 0x0

    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    iget v0, p1, Landroid/os/Message;->what:I

    sparse-switch v0, :sswitch_data_0

    :cond_0
    :goto_0
    return-void

    :sswitch_0
    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Lcom/waiqin365/lightapp/kehu/a/a/bl;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/kehu/a/a/bl;->b()Z

    move-result v1

    if-eqz v1, :cond_1

    if-eqz v0, :cond_1

    iget-object v1, v0, Lcom/waiqin365/lightapp/kehu/a/a/bl;->h:Ljava/util/ArrayList;

    if-eqz v1, :cond_1

    iget-object v1, p0, Lcom/waiqin365/lightapp/returngoods/h;->a:Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsAddActy;

    iget-object v0, v0, Lcom/waiqin365/lightapp/kehu/a/a/bl;->h:Ljava/util/ArrayList;

    invoke-static {v1, v0}, Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsAddActy;->a(Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsAddActy;Ljava/util/ArrayList;)V

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/returngoods/h;->a:Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsAddActy;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsAddActy;->dismissProgressDialog()V

    goto :goto_0

    :sswitch_1
    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Lcom/waiqin365/lightapp/order/b/a/t;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/order/b/a/t;->b()Z

    move-result v1

    if-eqz v1, :cond_7

    const-string/jumbo v1, "1"

    iget-object v2, v0, Lcom/waiqin365/lightapp/order/b/a/t;->b:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_7

    iget-object v1, p0, Lcom/waiqin365/lightapp/returngoods/h;->a:Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsAddActy;

    invoke-static {v1, v4}, Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsAddActy;->a(Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsAddActy;Z)Z

    const-string/jumbo v1, "2"

    iget-object v2, v0, Lcom/waiqin365/lightapp/order/b/a/t;->b:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_2

    new-instance v0, Lcom/waiqin365/compons/view/c;

    iget-object v1, p0, Lcom/waiqin365/lightapp/returngoods/h;->a:Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsAddActy;

    invoke-static {v1}, Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsAddActy;->a(Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsAddActy;)Landroid/content/Context;

    move-result-object v1

    const-string/jumbo v2, ""

    const-string/jumbo v3, ""

    sget v4, Lcom/waiqin365/compons/view/c;->b:I

    const/4 v5, 0x0

    invoke-direct/range {v0 .. v5}, Lcom/waiqin365/compons/view/c;-><init>(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;ILcom/waiqin365/compons/view/d;)V

    invoke-virtual {v0}, Lcom/waiqin365/compons/view/c;->show()V

    goto :goto_0

    :cond_2
    iget-object v1, v0, Lcom/waiqin365/lightapp/order/b/a/t;->d:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    if-lez v1, :cond_3

    iget-object v1, p0, Lcom/waiqin365/lightapp/returngoods/h;->a:Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsAddActy;

    invoke-static {v1, v3}, Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsAddActy;->b(Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsAddActy;Z)Z

    :cond_3
    iget-object v1, p0, Lcom/waiqin365/lightapp/returngoods/h;->a:Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsAddActy;

    invoke-static {v1}, Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsAddActy;->b(Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsAddActy;)Lcom/waiqin365/lightapp/view/SingleSelectViewNew_vertical;

    move-result-object v1

    iget-object v2, v0, Lcom/waiqin365/lightapp/order/b/a/t;->d:Ljava/util/List;

    invoke-virtual {v1, v2}, Lcom/waiqin365/lightapp/view/SingleSelectViewNew_vertical;->setValueItems(Ljava/util/List;)V

    iget-object v1, p0, Lcom/waiqin365/lightapp/returngoods/h;->a:Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsAddActy;

    invoke-static {v1}, Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsAddActy;->c(Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsAddActy;)Z

    move-result v1

    if-eqz v1, :cond_4

    new-instance v0, Lcom/waiqin365/lightapp/chexiao/c/v;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/chexiao/c/v;-><init>()V

    iget-object v1, p0, Lcom/waiqin365/lightapp/returngoods/h;->a:Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsAddActy;

    invoke-static {v1}, Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsAddActy;->d(Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsAddActy;)Lcom/waiqin365/lightapp/returngoods/c/c;

    move-result-object v1

    iget-object v1, v1, Lcom/waiqin365/lightapp/returngoods/c/c;->y:Ljava/lang/String;

    iput-object v1, v0, Lcom/waiqin365/lightapp/chexiao/c/v;->a:Ljava/lang/String;

    iget-object v1, p0, Lcom/waiqin365/lightapp/returngoods/h;->a:Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsAddActy;

    invoke-static {v1}, Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsAddActy;->d(Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsAddActy;)Lcom/waiqin365/lightapp/returngoods/c/c;

    move-result-object v1

    iget-object v1, v1, Lcom/waiqin365/lightapp/returngoods/c/c;->x:Ljava/lang/String;

    iput-object v1, v0, Lcom/waiqin365/lightapp/chexiao/c/v;->b:Ljava/lang/String;

    iget-object v1, p0, Lcom/waiqin365/lightapp/returngoods/h;->a:Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsAddActy;

    invoke-static {v1}, Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsAddActy;->b(Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsAddActy;)Lcom/waiqin365/lightapp/view/SingleSelectViewNew_vertical;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/waiqin365/lightapp/view/SingleSelectViewNew_vertical;->setSelectedItem(Lcom/waiqin365/lightapp/dailyreport/c/a;)V

    goto/16 :goto_0

    :cond_4
    const-string/jumbo v1, ""

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_6

    iget-object v0, v0, Lcom/waiqin365/lightapp/order/b/a/t;->d:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :cond_5
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/chexiao/c/v;

    iget-object v3, v0, Lcom/waiqin365/lightapp/chexiao/c/v;->a:Ljava/lang/String;

    invoke-virtual {v1, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_5

    iget-object v1, p0, Lcom/waiqin365/lightapp/returngoods/h;->a:Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsAddActy;

    invoke-static {v1}, Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsAddActy;->b(Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsAddActy;)Lcom/waiqin365/lightapp/view/SingleSelectViewNew_vertical;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/waiqin365/lightapp/view/SingleSelectViewNew_vertical;->setSelectedItem(Lcom/waiqin365/lightapp/dailyreport/c/a;)V

    goto/16 :goto_0

    :cond_6
    iget-object v1, v0, Lcom/waiqin365/lightapp/order/b/a/t;->d:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    if-ne v1, v4, :cond_0

    iget-object v1, p0, Lcom/waiqin365/lightapp/returngoods/h;->a:Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsAddActy;

    invoke-static {v1}, Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsAddActy;->b(Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsAddActy;)Lcom/waiqin365/lightapp/view/SingleSelectViewNew_vertical;

    move-result-object v1

    iget-object v0, v0, Lcom/waiqin365/lightapp/order/b/a/t;->d:Ljava/util/List;

    invoke-interface {v0, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/c/a;

    invoke-virtual {v1, v0}, Lcom/waiqin365/lightapp/view/SingleSelectViewNew_vertical;->setSelectedItem(Lcom/waiqin365/lightapp/dailyreport/c/a;)V

    goto/16 :goto_0

    :cond_7
    iget-object v1, v0, Lcom/waiqin365/lightapp/order/b/a/t;->c:Ljava/lang/String;

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_8

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v2, p0, Lcom/waiqin365/lightapp/returngoods/h;->a:Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsAddActy;

    const v3, 0x7f080562

    invoke-virtual {v2, v3}, Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsAddActy;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, "\uff0c"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/returngoods/h;->a:Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsAddActy;

    const v3, 0x7f08065c

    invoke-virtual {v2, v3}, Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsAddActy;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, "\uff01"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    iget-object v1, p0, Lcom/waiqin365/lightapp/returngoods/h;->a:Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsAddActy;

    invoke-static {v1}, Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsAddActy;->e(Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsAddActy;)Landroid/content/Context;

    move-result-object v1

    iget v0, v0, Lcom/waiqin365/lightapp/order/b/a/t;->a:I

    invoke-static {v1, v0}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;I)V

    goto/16 :goto_0

    :cond_8
    iget-object v0, p0, Lcom/waiqin365/lightapp/returngoods/h;->a:Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsAddActy;

    invoke-static {v0}, Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsAddActy;->f(Lcom/waiqin365/lightapp/returngoods/CustomerReturnGoodsAddActy;)Landroid/content/Context;

    move-result-object v0

    invoke-static {v0, v1, v3}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;I)V

    goto/16 :goto_0

    :sswitch_data_0
    .sparse-switch
        0xa -> :sswitch_0
        0x3ff -> :sswitch_1
    .end sparse-switch
.end method
